<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- 1.checkbox单选框 -->
        <!-- 写label的好处是，在点击文字的时候也能让checkbox被选中 -->
        <label for="agree">
            <input type="checkbox" name="agree" id="agree" v-model="isAgree">同意协议
        </label>
        <h2>您的选择是：{{isAgree}}</h2>
        <button :disabled="!isAgree">下一步</button></button>
         <!-- 1.checkbox单选框 -->

         <!-- 2.checkbox多选框 -->
         <input type="checkbox" value="篮球" v-model="hobbies">篮球
         <input type="checkbox" value="足球" v-model="hobbies">足球
         <input type="checkbox" value="乒乓球" v-model="hobbies">乒乓球
         <h2>您的爱好是：{{hobbies}}</h2>
         <!-- 2.checkbox多选框 -->
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
        const app=new Vue({
            el:'#app',
            data:{
                message:'vuejs',
                isAgree:false,//单选框
                hobbies:[]//多选框
            }
        })
    </script>
</body>
</html>